package com.java47.service;

import com.java47.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @authoru java1214
 * @create 2023-01-04 13:57
 */
public interface Userservice {
    //查询
    public List<User> findAll();

    //根据id查询
    public User findById( Long id);

    //添加
    public Map<String,Object> add(User user);

    //更新
    public Map<String,Object> update(User user);

    //删除
    public Map<String,Object> deleteById( Long id);
}
